package com.piker.pikeropen.server;

import java.util.List;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable
public class SportingEventDTO {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key mKey;

	@Persistent
	private Key mParent;

	@Persistent
	private String mName;

	@Persistent
	private Key mScheduleOfPlay;

	@Persistent
	private List<TournamentDTO> mTournaments;

	public SportingEventDTO(Key key, Key parent, String name, Key scheduleOfPlay, List<TournamentDTO> tournaments) {
		super();
		mKey = key;
		mParent = parent;
		mName = name;
		mScheduleOfPlay = scheduleOfPlay;
		mTournaments = tournaments;
	}

	public Key getKey() {
		return mKey;
	}

	public void setKey(Key key) {
		mKey = key;
	}

	public List<TournamentDTO> getTournaments() {
		return mTournaments;
	}

	public void setTournaments(List<TournamentDTO> tournaments) {
		mTournaments = tournaments;
	}

	public Key getParent() {
		return mParent;
	}

	public void setParent(Key parent) {
		mParent = parent;
	}

	public String getName() {
		return mName;
	}

	public void setName(String name) {
		mName = name;
	}

	public Key getScheduleOfPlay() {
		return mScheduleOfPlay;
	}

	public void setScheduleOfPlay(Key scheduleOfPlay) {
		mScheduleOfPlay = scheduleOfPlay;
	}
}
